module.exports = {
  port: "3000",
  dest: "_docs",
  base: "/docs/",
  markdown: {
    lineNumbers: false,
    highlightLines: true,
    target: '_blank', rel: 'noopener noreferrer',
    plugins: [],
  },

  plugins: [
    '@vuepress/plugin-back-to-top',
    ['vuepress-plugin-code-copy', { align: 'bottom', color: '#ffffff' }]
  ],
  locales: {
    "/": {
      lang: "zh-CN",
      title: "Chat-Plus 文档",
      description: "一键搭建属于自己的 AI 助手平台"
    }
  },
  head: [["link", { rel: "icon", href: "/favicon.ico" }]],
  themeConfig: {
    logo: "/images/logo.png",
    editLinks: false,
    locales: {
      "/": {
        label: "简体中文",
        selectText: "Languages",
        editLinkText: "在 GitHub 上编辑此页",
        lastUpdated: "上次更新",
        nav: [
          {
            text: "项目介绍",
            link: "/info/",
          },
          {
            text: "安装部署",
            link: "/install/"
          },

          {
            text: "开发构建",
            link: "/dev/"
          },

          {
            text: "技术交流群",
            link: "/wechat/",
          },
          {
            text: "演示平台",
            link: "https://ai.r9it.com"
          },
          {
            text: "GitHub",
            link: "https://github.com/yangjian102621/chatgpt-plus"
          }
        ],
        sidebar: {
          "/info/": [
            {
              title: "项目介绍",
              collapsable: true,
              children: ["", "changelog"]
            }
          ],
          "/install/": [
            {
              title: "安装部署",
              collapsable: true,
              children: ["", "quick", "deploy", "windows", "baota", "upgrade", "config/midjourney", "config/midjourney-plus",
                "config/gpt-plus", "config/stable-diffusion", "config/wechat",
                "config/alipay", "config/function", "config/register", "config/xxl-job", "config/https", "config/service", "errors-handle"]
            }
          ],
          "/dev/": [
            {
              title: "开发构建",
              collapsable: true,
              children: [""]
            }
          ],
          "/wechat/": [
            {
              title: "技术交流群",
              collapsable: true,
              children: [""]
            }
          ]
        }
      }
    },

  }
}
